<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$webtitle}</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<style>
.bg1{
background-image:url(../images/bg01.gif);
color:#FFFFFF;
font-size:14px;
font-weight:bold;
width:100px;
height:20px;
padding-top:5px;
}
.bg2{
background-image:url(../images/bg02.gif);
color:#000000;
font-size:12px;
font-weight:bold;
width:100px;
height:17px;
padding-top:8px;
margin-left:3px;
}
</style>
<script>
//按日期查询统计
function chaxun()
{
	var qizhi = document.getElementById("qizhi");
	var jieshu = document.getElementById("jieshu");
	if(qizhi.value == "")
	{
		alert("{$LANG['请选择起始日期！']}");
		return;
	}
	if (jieshu.value == '') {
		alert("{$LANG['请选择结束日期！']}");
		return;
	}
	if(qizhi.value > jieshu.value) {
		alert("{$LANG['起止日期不能大于结束日期！']}");
		return;
	}
	window.location="stat_player_left.php?st="+qizhi.value+"&et="+jieshu.value+"";
}
</script>
</head>

<body bgcolor="#DDEEF2">
<table width="98%" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#BBDDE5">
  
   <tr>
  <td colspan="20" bgcolor="#FFFFFF">
  {$LANG['说明']}：<br>
  
  {$LANG['1、新注册用户：某具体日期内的新注册用户数量（即创号数量）。']}<br>
  {$LANG['2、X日留存量：某一具体日期内的新注册用户数为判断池，这些用户在除当天注册日外的第X日内还有登陆游戏的玩家数量。']}<br>
  {$LANG['3、X日留存率：X日留存量/新注册用户。']}<br>
  </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" colspan="9" background="../images/bg_image.gif">
	    {$LANG['起始日期']}：<input type="text" name="qizhi" id="qizhi" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  value="{$st}" style="width:80px;height:14px;" />&nbsp;&nbsp;{$LANG['结束日期']}：<input type="text" name="jieshu" id="jieshu" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  value="{$et}" style="width:80px;height:14px;" />&nbsp;&nbsp;<input type="button" name="Submit" value="{$LANG['查询']}" onclick="chaxun();" />
    </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" height="25" width="15%" align="center"><b>{$LANG['日期']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['总注册数']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['新注册用户']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['1日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['2日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['3日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['4日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['5日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['6日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['7日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['14日留存率']}</b></td>
    <td bgcolor="#FFFFFF" width="" align="center"><b>{$LANG['30日留存率']}</b></td>
  </tr>
  {loop $aData $date $val}
  <tr>
    <td bgcolor="#FFFFFF" height="25" align="center">{$date}</td>
    <td bgcolor="#FFFFFF" height="25" align="center">{$val['total']}</td>
    <td bgcolor="#FFFFFF" height="25" align="center">{$val['new_reg']}</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['1day_left']>0}{$val['1day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['2day_left']>0}{$val['2day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['3day_left']>0}{$val['3day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['4day_left']>0}{$val['4day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['5day_left']>0}{$val['5day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['6day_left']>0}{$val['6day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['7day_left']>0}{$val['7day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['14day_left']>0}{$val['14day_left']}{else}0{/if}%</td>
    <td bgcolor="#FFFFFF" align="center">{if $val['30day_left']>0}{$val['30day_left']}{else}0{/if}%</td>
  </tr>
  {/loop}
 
</table>
</body>
</html>